import {useTokenStore} from "@/Stores/token";
import request from '@/utils/request.js'
export const productListService =(params)=>{
    const tokenStore = useTokenStore();
    return request.get('/product',{params:params})
}
export  const updateProductService = (ProductModel)=>{
    return request.put('/product',ProductModel)
}
export  const AddProductService = (ProductModel)=>{
    return request.post('/product',ProductModel,)
}
export const deleteProductService = (id)=>{
    return request.delete('/product?id='+id)
}